//
//  ZyBaseViewController.swift
//  swift各类控件集锦
//
//  Created by iosdev1 on 2016/12/23.
//  Copyright © 2016年 zyy. All rights reserved.
//

import UIKit

class ZyBaseViewController: UIViewController {
//
//    let data:(Any)? = nil
//    
//    init(datas:Any?) {
//        super.init()
//        self.data = datas;
//    }
//    
//    required init?(coder aDecoder: NSCoder) {
//        fatalError("init(coder:) has not been implemented")
//    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
        self.title = "修改"//修改下面tabbar的title和上面self.navigationController的title
//        self.navigationItem.title = "上面"//修改上面self.navigationController的title
//        self.navigationController?.title = "下面"//修改下面tabbar的title
//        
        //    然后设置一个背景色以后，就有一个柔顺的过渡效果了
        self.view.backgroundColor = UIColor.white
        //    edgesForExtendedLayout属性设置为UIRectEdgeNone，这样布局就是从导航栏下面开始了
        self.edgesForExtendedLayout = UIRectEdge.init(rawValue: 200)//后面的数字不知道什么情况
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
